-
Notifications
You must be signed in to change notification settings - Fork 29
feat: add docker build detection #409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c342010
to
5515ab0
Compare
@timyarkov It would be good if we have a description of the feature's behaviors in the PR's description whenever a new feature is developed. It could really help us with reviewing the code changes.
|
My bad, have updated it with more details, hopefully that is enough? |
No worries. That's great. Thanks for that. |
5515ab0
to
60aec9f
Compare
Please rebase on staging. Hopefully this PR would prevent this issue from happening again. |
60aec9f
to
3aa14b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add unit tests following the examples for build tools here.
13de6fc
to
33d4595
Compare
c5ab096
to
7664721
Compare
Signed-off-by: Tim Yarkov <[email protected]>
Signed-off-by: Tim Yarkov <[email protected]>
Signed-off-by: Tim Yarkov <[email protected]>
Signed-off-by: Tim Yarkov <[email protected]>
7faa11b
to
f9c267d
Compare
Signed-off-by: Tim Yarkov <[email protected]>
f9c267d
to
82ca3df
Compare
This PR adds support for the detection of Dockerfiles, so as to cover scenarios where Docker gets used as a build tool. * Docker presence is detected by finding files either named Dockerfile or in the formats *.Dockerfile or Dockerfile.* to cover different naming conventions of dockerfiles, e.g. dev.Dockerfile or like Macaron's own Dockerfile.base and Dockerfile.final. This is defined in defaults.ini under [builder.docker] * The supported build command keyword is build, and supported deploy command keyword is push, defined in defaults.ini under [builder.docker] *For CI deploy commands the GitHub action docker/build-push-action is supported, defined in defaults.ini under [builder.docker.ci.deploy] Signed-off-by: Tim Yarkov <[email protected]>
This PR adds support for the detection of Dockerfiles, so as to cover scenarios where Docker gets used as a build tool, e.g. when Macaron gets built using its Dockerfile.
Dockerfile
or in the formats*.Dockerfile
orDockerfile.*
to cover different naming conventions of dockerfiles, e.g.dev.Dockerfile
or like Macaron's ownDockerfile.base
andDockerfile.final
. This is defined indefaults.ini
under[builder.docker]
build
, and supported deploy command keyword ispush
, defined indefaults.ini
under[builder.docker]
defaults.ini
under[builder.docker.ci.deploy]
To do from here: